from rest_framework import serializers
from apps.menu.models import SysMenu

class SysMenuSerializer(serializers.ModelSerializer):

    class Meta:
        model = SysMenu
        fields = '__all__'  # 返回完整的菜单信息，包括子菜单